﻿using System;

namespace Infrastructure.Diagnostics
{
    [Flags]
    public enum Severity : int
    {
        Invalid = 0,
        Debug = 1,
        Info = 2,
        Warning = 4,
        Error = 8
    }

    public class LoggerEventArgs : EventArgs
    {
        public Severity Severity { get; private set; }
        public DateTime Date { get; private set; }
        public string Caller { get; private set; }
        public string SessionID { get; private set; }
        public string Message { get; private set; }

        public LoggerEventArgs(Severity severity, DateTime date, string caller, string sessionId, string message)
        {
            Severity = severity;
            Date = date;
            Caller = caller;
            SessionID = sessionId;
            Message = message;
        }
    }
}
